home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / help / RELATIONAL < prev    next >
Text File  |  1994-04-25  |  1KB  |  42 lines

  1. RELATIONAL:
  2.  
  3.     RLaB relational operators are:
  4.  
  5.     <    less than
  6.     >    greater than
  7.     <=    less then, or equal to
  8.     >=    greater than, or equal to
  9.  
  10.     The relational operators all have the same precedence.
  11.         
  12.     RLaB equality operators:
  13.  
  14.     ==    equals
  15.     !=    not equals
  16.  
  17.     The equality operators have the same precedence, and are just
  18.     below the relational operators, in terms of precedence.
  19.  
  20.     RLaB logical operators are:
  21.  
  22.     &&    and
  23.     ||    or
  24.  
  25.     The logical operators do not have the same precedence. The
  26.     logical AND operation has higher precedence than logical OR.
  27.     Both logical operators are lower in precedence than the
  28.     equality operators.
  29.  
  30.     The logical operators evaluate left-to-right (similar to C).
  31.     But, evaluation does not stop as soon as the result is known.
  32.     Full evaluation in required because the operands are not
  33.     restricted to being simple scalars quantities. Cases where the
  34.     operands are matrices requires that full operand evaluation
  35.     occur.
  36.     
  37.     And finally:
  38.  
  39.     !    unary negation
  40.  
  41.     Which has higher precedence than all the arithmetic operators.
  42.